package com.itheima.springboot.server.impl;

import com.itheima.springboot.dao.CourseDao;
import com.itheima.springboot.domain.Course;
import com.itheima.springboot.server.CourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CourseServiceImpl implements CourseService {
    @Autowired
    private CourseDao courseDao;

    @Override
    public List<Course> getAll() {
        return courseDao.findAll();
    }
}
